package com.weinisuo.share.mybatis.plus.table;


public class TablesNameHolder {

    private static final ThreadLocal<String> THREAD_TABLE_NAME = new ThreadLocal();

    public static String getThreadTableName() {
        return THREAD_TABLE_NAME.get();
    }

    public static void setThreadTableName(String tableName) {
        THREAD_TABLE_NAME.set(tableName);
    }

    public static void removeThreadTableName() {
        THREAD_TABLE_NAME.remove();
    }
}
